package avicit.bdp.dds.dao.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * spark parameters
 */
@ApiModel("flink节点参数配置")
public class FlinkConfig {

    /**
     * 集群ID
     */
    @ApiModelProperty("集群ID")
    private String clusterId;

    /**
     * deploy mode  yarn-cluster  yarn-client  yarn-local
     */
    @ApiModelProperty("部署方式：yarn-cluster  yarn-client  yarn-local")
    private String deployMode;


    /**
     * slot count
     */
    @ApiModelProperty("slot数量")
    private int slot;

    /**
     * taskManager count
     */
    @ApiModelProperty("taskManager数量")
    private int taskManager;

    /**
     * job manager memory
     */
    @ApiModelProperty("jobManager内存数")
    private String jobManagerMemory;

    /**
     * task manager memory
     */
    @ApiModelProperty("taskManager内存数")
    private String taskManagerMemory;

    /**
     * The YARN queue to submit to
     */
    private String queue;


    public String getClusterId() {
        return clusterId;
    }

    public void setClusterId(String clusterId) {
        this.clusterId = clusterId;
    }

    public String getDeployMode() {
        return deployMode;
    }

    public void setDeployMode(String deployMode) {
        this.deployMode = deployMode;
    }

    public int getSlot() {
        return slot;
    }

    public void setSlot(int slot) {
        this.slot = slot;
    }

    public int getTaskManager() {
        return taskManager;
    }

    public void setTaskManager(int taskManager) {
        this.taskManager = taskManager;
    }

    public String getJobManagerMemory() {
        return jobManagerMemory;
    }

    public void setJobManagerMemory(String jobManagerMemory) {
        this.jobManagerMemory = jobManagerMemory;
    }

    public String getTaskManagerMemory() {
        return taskManagerMemory;
    }

    public void setTaskManagerMemory(String taskManagerMemory) {
        this.taskManagerMemory = taskManagerMemory;
    }

    public String getQueue() {
        return queue;
    }

    public void setQueue(String queue) {
        this.queue = queue;
    }

    @Override
    public String toString() {
        return "FlinkConfig{" +
                "clusterId='" + clusterId + '\'' +
                ", deployMode='" + deployMode + '\'' +
                ", slot=" + slot +
                ", taskManager=" + taskManager +
                ", jobManagerMemory='" + jobManagerMemory + '\'' +
                ", taskManagerMemory='" + taskManagerMemory + '\'' +
                ", queue='" + queue + '\'' +
                '}';
    }
}
